<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PremiumFeaturedDentist.ascx.cs" Inherits="includes_PremiumFeaturedDentist" %>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr><td align="Center" style="height: 19px"><asp:Label id="lblMsgTop3" runat="server"></asp:Label></td></tr>
    <tr>
            <td >
               <asp:GridView  BackColor="#ffba00" ID="grd_top3" BorderWidth="0" runat="server" AutoGenerateColumns="False"
                            BorderStyle="Solid"  CellPadding="5" CssClass="normalgrey_12"
                            DataKeyNames="rating" OnRowDataBound="grdSearch_RowDataBound"
                             Width="100%" GridLines="None" PageSize="20">
                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast"
                                NextPageText="Next" Position="TopAndBottom" PreviousPageText="Previous" />
                            <FooterStyle HorizontalAlign="Left" />
                            <Columns>
                                <asp:TemplateField HeaderText="Name">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="100px"  VerticalAlign="Top" />
                                    <ItemTemplate >  
                                    <table border=0 cellpadding="0" cellspacing="0">
                                    <tr><td width='90'>
                                    <%#getPhoto(Eval("photo"),Eval("gender")) %>                                  
                                    </td><td nowrap>&nbsp;
                                        <%if (frompage.ToString() == "RateDoctors")
                                          {%>
                                        <a class="link-result" href='<%=Session["strHttp"]%>Dentist/RateDentist.aspx?id=<%# Eval("Id") %>'
                                            title="Show Details"><b><u>
                                                <%# Eval("docname") %></u>
                                            </b>
                                            </a>
                                        <%}
                                          else
                                          { %>
                                          <!-- Comented for implement new URL Formate at 17/07/08 by Ranjeet 
                                            <a class="link-result" href='<%=Session["strHttp"]%>Dentist/DentistDetails.aspx?id=<%# Eval("Id") %>'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>-->
                                                <a class="link-result" href='<%=Session["strHttp"]%>Dentists/<%#lfunction.GetURLFormatById(Convert.ToInt32(Eval("Id")),"Dentist")%>/<%# Eval("Id") %>-<%# Eval("docname") %>.aspx'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>
                                       <%} %>
                                       </td></tr>
                                    </table>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField Visible="False">
                                <ItemStyle Width="10px" />
                                <ItemTemplate>                                
                                </ItemTemplate>
                                </asp:TemplateField>                                
                                <asp:BoundField DataField="address"  HeaderText="Address" HtmlEncode="False"  >
                                    <ItemStyle Width="150px" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="speciality" HeaderText="Specialty / Subspecialty" >
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>    
                                <asp:BoundField DataField="distance"  HeaderText="Distance (miles)" >                               
                                    <ItemStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False"  />                                    
                                 </asp:BoundField>                            
                                <asp:BoundField DataField="rating"  HeaderText="Overall Rating" >
                                    <ItemStyle Font-Bold="True" ForeColor="Blue" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Left"  />
                                    <FooterStyle Wrap="False" />
                                </asp:BoundField>                              
                            </Columns>
                            <RowStyle HorizontalAlign="Left" />                            
                            <HeaderStyle BackColor="Lavender" />
                        </asp:GridView>
            </td>
    </tr>
</table>

